package com.ybwh.springboot2.sharding4.dao;

import com.gitee.fastmybatis.core.mapper.CrudMapper;
import com.ybwh.springboot2.sharding4.model.po.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDao extends CrudMapper<Order/*实体类*/, Long/*主键类型*/> {


    List<Order> selectByUserId(long UserId);


    List<Order> selectByUserIdAndOrderId(@Param("userId") long l, @Param("orderId") long m);
}